home *** CD-ROM | disk | FTP | other *** search
/ MacWarehouse Macintosh Games / MacWarehouse Macintosh Games.iso / AMBER demo / AMBER-Journeys Beyond™ Patch 1c / 00102_colorDepth & gamma-fade utilities.ls < prev    next >
Encoding:
Text File  |  1997-02-19  |  1.2 KB  |  58 lines

  1. on resetSound whatLevel
  2.   if the number of menus > 1 then
  3.     set the checkMark of menuItem (8 - the soundLevel) of menu 2 to 0
  4.   end if
  5.   set the soundLevel to whatLevel
  6.   if the number of menus > 1 then
  7.     set the checkMark of menuItem (8 - the soundLevel) of menu 2 to 1
  8.   end if
  9. end
  10.  
  11. on report outString
  12.   global testData
  13.   if objectp(testData) then
  14.     testData(mWriteString, outString & RETURN)
  15.   else
  16.     put outString
  17.   end if
  18. end
  19.  
  20. on REPORT2 outString
  21.   global testData
  22.   if objectp(testData) then
  23.     testData(mWriteString, outString & RETURN)
  24.   else
  25.     put outString
  26.   end if
  27. end
  28.  
  29. on gammaFade upOrDown, howFast
  30.   set speedCodes to [#slow: "18", #fast: "36", #instant: "100"]
  31.   set mySpeed to getaProp(speedCodes, howFast)
  32.   if voidp(mySpeed) then
  33.     set mySpeed to getProp(speedCodes, #fast)
  34.   end if
  35.   if upOrDown = #down then
  36.     MonitorFade("down", mySpeed)
  37.   else
  38.     updateStage()
  39.     MonitorFade("up", mySpeed)
  40.   end if
  41. end
  42.  
  43. on setColor howManybits
  44.   set the colorDepth to howManybits
  45.   if the colorDepth <> howManybits then
  46.     if howManybits = 16 then
  47.       set the colorDepth to 32
  48.     else
  49.       put "Sorry, Director sez the colorDepth is " & the colorDepth & " bits.."
  50.     end if
  51.   else
  52.   end if
  53. end
  54.  
  55. on suspendSounds
  56.   exit
  57. end
  58.